import { createApp } from "vue";
import ElementPlus from "element-plus";
import zhCn from "element-plus/es/locale/lang/zh-cn";
//配置element-plus国际化
import "element-plus/dist/index.css";
import App from "./App.vue";
//svg插件需要配置的代码
import 'virtual:svg-icons-register'
//引入自定义插件对象：注册整个项目全局组件
import gloablComponent from './components/index';
//引入路由
import router from "./router";

// app.use(gloalComponent)
//引入默认样式
import './styles/index.scss'

const app = createApp(App);

app.use(ElementPlus, {
  locale: zhCn, //国际化配置
});

app.use(gloablComponent)
app.use(router)

app.mount("#app");
